package com.stu.vertx.hello.designPattern.singleton.lazyStyle;

public class SingletonThreadProblem {
    public static void main(String[] args) {

        new Thread(){
            @Override
            public void run() {
                Singleton singleton = Singleton.getSingleton();
                System.out.println(Thread.currentThread().getName() + "【" + singleton + "】");
            }
        }.start();

        new Thread(){
            @Override
            public void run() {
                Singleton singleton = Singleton.getSingleton();
                System.out.println(Thread.currentThread().getName() + "【" + singleton + "】");
            }
        }.start();


        new Thread(){
            @Override
            public void run() {
                Singleton singleton = Singleton.getSingleton();
                System.out.println(Thread.currentThread().getName() + "【" + singleton + "】");
            }
        }.start();
    }
}
